﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    enum ShopType
    { 
        武器NPC,
        材料NPC,
        食物NPC
    }
    class ShopNPC:NPC
    {
        private ShopType type2;
        private string shopInfo;

        public override void Hello()
        {
            Console.WriteLine("瞧一瞧，看一看呐，走过路过不要错过！！！");
            Console.WriteLine("我叫：{0}，我是{1}中的{2}，商品：{3}", base.Name, base.NpcType , this.type2, this.shopInfo);
        }

        public ShopType Type2
        {
            get { return this.type2; }
            set { this.type2 = value; }
        }
        public string ShopInfo
        {
            get { return this.shopInfo; }
            set { this.shopInfo = value; }
        }
        public ShopNPC() { }

        public ShopNPC(string name , NPCType npctype , ShopType type2 , string shopInfo) : base(name,npctype)
        {
            this.shopInfo = shopInfo;
            this.type2 = type2;
        }
    }
}
